﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Database"
	x:Name="UserControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="Auto" Height="Auto">

	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="50" />
			<RowDefinition Height="*" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
	
		<Grid Grid.Row="0">
	        <Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="Select a database:"/>
	        <ComboBox IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Stretch" VerticalAlignment="Top" x:Name="cmbDatabase" Margin="0,20,0,0"/>
		</Grid>
		
		<Grid Grid.Row="1">
	        <Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="Select a table:" />
	        <ListBox IsSynchronizedWithCurrentItem="True" VerticalAlignment="Stretch" Margin="0,20,0,0" x:Name="lbTable" />
		</Grid>
		
		<Grid Grid.Row="2">
	        <Label Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto">Select a key or unique column:</Label>
	        <ListBox IsSynchronizedWithCurrentItem="True" VerticalAlignment="Stretch" Margin="0,20,0,20" x:Name="lbColumn" />
	        <Label x:Name="lblNotUnique" Visibility="Hidden" HorizontalAlignment="Left" VerticalAlignment="Bottom" Content="This column is not guaranteed to be unique" Foreground="#ffc0262c" />
		</Grid>
    </Grid>
</UserControl>